package com.zx._10_设计模式._0_综合案例.奖励的发放策略;

/**
 * @author zhangxue
 */
public class Hotel implements Strategy {

    //单例模式,自动注册
    private  static final Hotel instance = new Hotel();

    private Hotel(){
        // 注册策略
        StrategyContext.registerStrategy(RewardType.Strategy4.name(), this);
    }

    public static Strategy getInstance(){
        return Hotel.instance;
    }

    @Override
    public void issue(Object... params) {
        System.out.println("Hotel");
    }

}
